//二进制
let binary = 0B010101;
console.log(binary);

//八进制
let octal=0o666;
console.log(octal);

//判断数字
let a=11/4;
console.log(Number.isFinite(a));
console.log(Number.isFinite("尼玛"));
console.log(Number.isFinite("Nan"));
console.log(Number.isFinite(undefined));

//判断NaN
console.log("下面是NaN!")
console.log(Number.isNaN(1));
//0/0也是NaN
console.log(Number.isNaN( 0 / 0));
console.log(Number.isNaN(NaN));
console.log(Number.isNaN(undefined));

//判断数字
console.log("下面是整形判断!")
let b=918.6;

console.log(Number.isInteger(b));
console.log(Number.parseInt(b));
console.log(Number.parseFloat(b));

//判断安全值
console.log("下面是安全界定!")
let c=Math.pow(2,53)+1;
console.log(c);
console.log(Number.MAX_SAFE_INTEGER);
console.log(Number.MIN_SAFE_INTEGER);
console.log(Number.isSafeInteger(c));
